#默认参数值求和
def sum1(m=1, n=100):
    return sum(range(m, n + 1))


print(sum1())


#不定长参数求平均值
def avg(*p):
    return sum(p) / len(p)


print(avg(2, 4, 9))


# 学生信息输出
def outstu(**di):
    for k, v in di.items():
        print(k, v)
    print()


outstu(id='1', name='张')
outstu(classid='2', name='李', score=90)
